package com.woniu.his.dms.client;

import com.woniu.his.dms.client.param.AddOrUpdateCaseModelClientParam;
import com.woniu.his.dms.client.result.CaseModelResult;
import com.woniu.his.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @version: java version 1.8
 * @Author: ZJH
 * @description:
 * @date: 2022-11-29 20:50
 */
@FeignClient(contextId = "CaseModelClient",name = "dms",path = "dms")
public interface CaseModelClient {

    /**
     * 新增或更新模板信息
     * @param param
     * @return
     */
    @PostMapping("addOrUpdateCaseModel")
    Result<Boolean> addOrUpdateCaseModel(@RequestBody AddOrUpdateCaseModelClientParam param);

    /**
     * 通过模板id查询模板
     * @param id
     * @return
     */
    @GetMapping("queryCaseModelById")
    Result<CaseModelResult> queryCaseModelById(@RequestParam("id") Long id);

    /**
     * 删除模板
     * @param ids
     * @return
     */
    @DeleteMapping("deleteCaseModelByIds")
    Result<Boolean> deleteCaseModelByIds(@PathVariable("ids") List<Long> ids);
}
